HTML5 Foundations by Matt West
Author:Matt West
Language: eng
Format: mobi, epub, pdf
Published: 2012-11-09T05:00:00+00:00
<section id="location3" itemscope
itemtype="http://schema.org/LocalBusiness"
itemref="company-name">
<h1 itemprop="address" itemscope
itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">200 West 44th Street</span>,
<span itemprop="addressRegion">NY</span>
</h1>
<img src="img/map3.png"
alt="Joe’s Pizza at 200 West 44th Street, NY"
itemprop="image">
<p class="location-phone" itemprop="telephone">212 012 3458</p>
<h2>Opening Hours:</h2>
<p>
<time itemprop="openingHours" datetime="Mo-Fr 12:00-22:00">
Mon-Fri: 12:00 - 22:00</time><br>
<time itemprop="openingHours" datetime="Sa,Su 11:00-23:00">
Sat-Sun: 11:00 - 23:00</time>
</p>
</section>
</section>
Now that you are finished with the Locations page, take a look at the rest of the pages on the website. Are there any other areas of content that you think would benefit from the use of microdata? Try adding microdata to those areas (you might need to read the rest of this chapter first).
Events
Marking up your events data enables computer programs to use this data for a number of possible applications. For example, imagine if when you did a web search for an event, the important details about the event appeared right there in the search results, saving you the job of having to find the correct link in the results and then scan the web page for details about the event. That could be really useful.
Google already does something similar to this. If you search for your favorite sports team Google will show you a summary of recent results and upcoming games above the normal search results.
Every October Joe’s Pizza Co. runs a number of special events in celebration of national Italian-American heritage month. In this section you learn how to use microdata to mark up one of these events.
You can define an event by using the Event schema.
<div itemscope itemtype="http://schema.org/Event"></div>
Events have the same four basic properties that all schema.org items have: name, description, image, and url, plus the properties outlined in the following list.
• startDate—Your startDate should be supplied in a machine-readable format. It’s usually best to use a <time> element when specifying dates and times with microdata. Computer programs will use the contents of the datetime attribute. The Joe’s Pizza Co. event will start at 9am on Saturday 5th October.
<time itemprop="startDate" datetime="2013-10-05T09:00">
Saturday 5th October at 9am
</time>
Download
HTML5 Foundations by Matt West.epub
HTML5 Foundations by Matt West.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(21880)
Hello! Python by Anthony Briggs(21090)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(19602)
Dependency Injection in .NET by Mark Seemann(19125)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(18777)
Kotlin in Action by Dmitry Jemerov(18632)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(18331)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(17190)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(16956)
Grails in Action by Glen Smith Peter Ledbrook(16314)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(13940)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(11931)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(10722)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10592)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(9818)
Hit Refresh by Satya Nadella(9105)
The Kubernetes Operator Framework Book by Michael Dame(8535)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8358)
Robo-Advisor with Python by Aki Ranin(8305)